<template>
  <div>
    <el-form :inline="true" class="searchForm">
      <el-form-item label="工单编号">
        <el-input
          v-model="form.text"
          placeholder="请输入"
          style="width: 205px"
        ></el-input>
      </el-form-item>
      <el-form-item label="工单状态">
        <el-select
          v-model="form.select"
          placeholder="请选择"
          style="width: 205px"
        >
          <el-option label="代办" value="shanghai"></el-option>
          <el-option label="进行" value="shanghai"></el-option>
          <el-option label="取消" value="shanghai"></el-option>
          <el-option label="完成" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">查询</el-button>
      </el-form-item>
    </el-form>
    <div class="tableBox">
      <div class="buttonBox">
        <el-button class="addButton">
          <i class="el-icon-circle-plus-outline"></i>
          <span>新建</span>
          </el-button>
        <el-button class="configButton">工单配置</el-button>
      </div>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="id" label="序号" width="180">
        </el-table-column>
        <el-table-column prop="gdCode" label="工单编号" width="180">
        </el-table-column>
        <el-table-column prop="shebei" label="设备编号"> </el-table-column>
        <el-table-column prop="gdClass" label="工单类型"> </el-table-column>
        <el-table-column prop="methods" label="工单方式"> </el-table-column>
        <el-table-column prop="status" label="工单状态"> </el-table-column>
        <el-table-column prop="person" label="运营人员"> </el-table-column>
        <el-table-column prop="date" label="创建日期"> </el-table-column>
        <el-table-column label="操作" width="120">
          <template slot-scope="scope">
            <el-button
              @click.native.prevent="deleteRow(scope.$index, tableData)"
              type="text"
              size="small"
            >
              查看详情
            </el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: 'yunying-page',
  components: {},
  props: {},
  data() {
    return {
      form: {
        select: '',
        text: ''
      },
      tableData: [
        {
          id: 1,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 2,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 3,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 4,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 5,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 6,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 7,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 8,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 9,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        },
        {
          id: 10,
          gdCode: '202304160025',
          shebei: '0100057',
          gdClass: '补货工单',
          methods: '手动',
          status: '代办',
          person: '冠霖',
          date: '2023.04.16'
        }
      ]
    }
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped>
.searchForm {
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  background-color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-left: 17px;
  padding-top: 24px;
}
::v-deep .el-form-item {
  margin-right: 10px;
}
.el-button {
  width: 80px;
  height: 36px;
  font-size: 14px;
}
.addButton {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 16px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff9743, #ff5e20) !important;
  border: none;
}
.configButton {
  padding: 0;
    background-color: #fbf4f0!important;
    border: none;
    color: #655b56!important;
}
.tableBox{
  box-sizing: border-box;
  width: 100%;
  height: 100%;
    padding: 20px 15px 19px 17px;
    background-color: #fff;
}
.buttonBox {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
</style>
